/**
* Create by mzq
* Description: AbnormalElectrode
* Date: 2025/2/14 15:54
* Update: 2025/2/14 15:54
*/
<script>
export default {
  name: 'AbnormalElectrode',
  props: {
    value: {
      type: Boolean,
      default: false
    }
  },
  emits: ['input', 'handle'],
  methods: {
    handleClick() {
      this.$emit('input', false)
      this.$emit('handle')
    },
    handleClose() {
      this.$emit('input', false)
    }
  },
  watch: {
    value: {
      immediate: true,
      handler(newVal) {
        console.log('AbnormalElectrode modelValue changed:', newVal)
      }
    }
  }
}
</script>

<template>
  <view v-if="value" class="AbnormalElectrode">
    <view class="dialog-content">
      <div>
        <image
          style="width: 320px; height: 220px"
          src="../../../image/AbnormalElectrode.png"></image>
      </div>
      <div class="size">电极佩戴异常，请检查！</div>
      <div>
        <button @click="handleClick">立即处理</button>
      </div>
    </view>
  </view>
</template>

<style scoped lang="scss">
.AbnormalElectrode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;

  .dialog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 940rpx;
    height: 960rpx;
    background: url('../../../image/bigDialog.png') no-repeat;
    background-size: 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}

.size {
  margin-top: 40px;
  color: #f7f7f7;
  font-size: 24px;
}

button {
  font-size: 26px;
  margin-top: 20px;
  background-color: #1E7168;
  color: #52F38E;
  padding-left: 30px;
  padding-right: 30px;
  border: none;
  border-radius: 55px;
  cursor: pointer;
}
</style>